package cn.fscode.code.generator.model.po;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * @author shenguangyang
 */
@Getter
@Setter
@ToString
@TableName("generate_history")
public class GenerateHistoryPO implements IBasePO {
	@TableId
	private Long id;
	private String configContent;
	private String md5Value;
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	@Override
	public boolean equals(Object o) {
		if (this == o) { return true; }
		if (o == null || getClass() != o.getClass()) {return false;}
		GenerateHistoryPO that = (GenerateHistoryPO) o;
		return id.equals(that.id);
	}

	@Override
	public int hashCode() {
		return java.util.Objects.hash(id);
	}
}